﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;

namespace Jack.Service
{
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
    public class ServiceHello : IHello
    {
        #region IHello 成员

        public void SayHelloTo(string userName)
        {
            Console.WriteLine("Hello {0}", userName);
           
            OperationContext.Current.GetCallbackChannel<ICallBack>().ReceiveTime(DateTime.Now);
        }

        #endregion
    }
}
